package com.muyu.danmo.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 画廊详情对象 danmo_gallery_details
 *
 * @author yangle
 * @date 2024-10-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoGalleryDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 店铺标题 */
    @Excel(name = "店铺标题")
    private String title;

    /** 店铺介绍 */
    @Excel(name = "店铺介绍")
    private String introduction;

    /** 结束营业时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束营业时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endBusiness;

    /** 开始营业时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始营业时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beganBusiness;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contactInfo;

    /** 店铺地址 */
    @Excel(name = "店铺地址")
    private String address;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String citycode;

    /** 县 */
    @Excel(name = "县")
    private String countycode;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long praise;

    /** 状态 */
    @Excel(name = "状态")
    private Long states;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    private Integer pageNum=1;
    private Integer pageSize=10;

    private List<DanmoGalleryDetails> galleryDetailsList;

    private List<DanmoGalleryType> galleryTypeList;

    private List<DanmoGalleryDoor> galleryDoorList;

    private List<DanmoGalleryInterior> galleryInteriorList;

    private List<DanmoGalleryWorks> galleryWorksList;

//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setTitle(String title)
//    {
//        this.title = title;
//    }
//
//    public String getTitle()
//    {
//        return title;
//    }
//    public void setIntroduction(String introduction)
//    {
//        this.introduction = introduction;
//    }
//
//    public String getIntroduction()
//    {
//        return introduction;
//    }
//    public void setEndBusiness(Date endBusiness)
//    {
//        this.endBusiness = endBusiness;
//    }
//
//    public Date getEndBusiness()
//    {
//        return endBusiness;
//    }
//    public void setBeganBusiness(Date beganBusiness)
//    {
//        this.beganBusiness = beganBusiness;
//    }
//
//    public Date getBeganBusiness()
//    {
//        return beganBusiness;
//    }
//    public void setContactInfo(String contactInfo)
//    {
//        this.contactInfo = contactInfo;
//    }
//
//    public String getContactInfo()
//    {
//        return contactInfo;
//    }
//    public void setAddress(String address)
//    {
//        this.address = address;
//    }
//
//    public String getAddress()
//    {
//        return address;
//    }
//    public void setEmail(String email)
//    {
//        this.email = email;
//    }
//
//    public String getEmail()
//    {
//        return email;
//    }
//    public void setProvince(String province)
//    {
//        this.province = province;
//    }
//
//    public String getProvince()
//    {
//        return province;
//    }
//    public void setCitycode(String citycode)
//    {
//        this.citycode = citycode;
//    }
//
//    public String getCitycode()
//    {
//        return citycode;
//    }
//    public void setCountycode(String countycode)
//    {
//        this.countycode = countycode;
//    }
//
//    public String getCountycode()
//    {
//        return countycode;
//    }
//    public void setUserId(Long userId)
//    {
//        this.userId = userId;
//    }
//
//    public Long getUserId()
//    {
//        return userId;
//    }
//    public void setViews(Long views)
//    {
//        this.views = views;
//    }
//
//    public Long getViews()
//    {
//        return views;
//    }
//    public void setPraise(Long praise)
//    {
//        this.praise = praise;
//    }
//
//    public Long getPraise()
//    {
//        return praise;
//    }
//    public void setStates(Long states)
//    {
//        this.states = states;
//    }
//
//    public Long getStates()
//    {
//        return states;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("introduction", getIntroduction())
            .append("endBusiness", getEndBusiness())
            .append("beganBusiness", getBeganBusiness())
            .append("contactInfo", getContactInfo())
            .append("address", getAddress())
            .append("email", getEmail())
            .append("province", getProvince())
            .append("citycode", getCitycode())
            .append("countycode", getCountycode())
            .append("userId", getUserId())
            .append("views", getViews())
            .append("praise", getPraise())
            .append("states", getStates())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("picture", getPicture())
            .toString();
    }
}
